package org.ms.springcloud.hystrix.consumer.fallbackFeignClient;

import org.ms.springcloud.service.api.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "spring-cloud-eureka-client"/*, fallback = UserFeignClientHystrix.class*/)
public interface UserFeignClient {

    @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
    User findUserById(@PathVariable("id") Long id);

}